package be.vdab.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import be.vdab.dao.PersoonDAO;
import be.vdab.entities.Persoon;

@Service("persoonService")
public class PersoonServiceImpl implements PersoonService {
	private final PersoonDAO persoonDAO;
	@Autowired
	public PersoonServiceImpl (@Qualifier("persoonCSV")PersoonDAO persoonDAO){
		this.persoonDAO = persoonDAO;
	}
	@Override
	public Iterable<Persoon> findAll(){
		return persoonDAO.findAll();
	}
}
